package com.chuangke.fss;

import com.chuangke.file.model.FileBrief;
import com.chuangke.file.model.FileChunk;
import com.chuangke.fss.model.FSSObject;

public interface FSS {
	
	FSSObject download(FSSObject fssObject) ;
	
	void delete(FSSObject fssObject) ;

	FSSObject upload(FSSObject fssObject) ;
	
	//断点续传接口
	/**
	 * 断点续传-1.创建文件元数据
	 * @param fileBrief
	 * @return
	 */
	FileBrief uploadAppenderFile(FileBrief fileBrief) ;
	
	/**
	 * 断点续传-2.上传文件块
	 * @param fileChunk
	 * @return
	 */
	boolean appenderFile(FileChunk fileChunk) ;
	
	/**
	 * 断点续传-3.合并文件块成文件
	 * @param fileBrief
	 * @return
	 */
	boolean mergeFile(FileBrief fileBrief) ;
	
}
